<template>
    <div class="">
        <el-container class="form-container" style="">
            <el-card class="box-card" shadow="never">
                <div slot="header" class="clearfix">
                    <span>数据源管理</span>
                    <el-button type="primary" size="mini" style="float:right;padding: 6px 9px;margin-left:10px" @click="handlerEdit">编辑</el-button>
                </div>
                <div >
                    <el-row>
                    <el-col :span="12">
                        <el-form-item  label="创建时间">
                            <el-input class="input" v-model="form.fdCreateTime"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item  label="链接名称">
                            <el-input class="input" v-model="form.fdName"></el-input>
                        </el-form-item>
                    </el-col>
                    </el-row>
                    <el-row>
                    <el-col :span="12">
                        <el-form-item  label="备注">
                            <el-input class="input" v-model="form.fdRemark"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item  label="唯一值">
                            <el-input class="input" v-model="form.fdKey"></el-input>
                        </el-form-item>
                    </el-col>
                    </el-row>
                    <el-row>
                    <el-col :span="12">
                        <el-form-item  label="数据库类型">
                            <el-input class="input" v-model="form.fdDbType"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item  label="数据库链接url">
                            <el-input class="input" v-model="form.fdDbUrl"></el-input>
                        </el-form-item>
                    </el-col>
                    </el-row>
                    <el-row>
                    <el-col :span="12">
                        <el-form-item  label="数据库驱动">
                            <el-input class="input" v-model="form.fdDbDriver"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item  label="用户名">
                            <el-input class="input" v-model="form.fdUsername"></el-input>
                        </el-form-item>
                    </el-col>
                    </el-row>
                    <el-row>
                    <el-col :span="12">
                        <el-form-item  label="密码">
                            <el-input class="input" v-model="form.fdPassword"></el-input>
                        </el-form-item>
                    </el-col>
                    </el-row>
                </div>
            </el-card>
        </el-container>
    </div>
</template>
<script>
import {view} from '@/components/mixins/form';
export default {
    name: "sysDataSourceMainAdd",
    components: {
    },
    data() {
        return {
            editUrl:'/sys/datasource/sys_data_source_main/edit',
            fetchUrl:'/api/sys/datasource/sys_data_source_main',
            form: {
                fdCreateTime:'',
                fdName:'',
                fdRemark:'',
                fdKey:'',
                fdDbType:'',
                fdDbUrl:'',
                fdDbDriver:'',
                fdUsername:'',
                fdPassword:''
            }
        }
    },
    mixins:[view]
}
</script>
<style scoped >
@import "~@/assets/css/form.css";
</style>